
import Vue from 'vue'
import VueRouter from "vue-router"
import Foot from "@/views/Foot.vue"

import Home from "@/views/Home.vue"
import Look from "@/views/Look.vue"
import Information from "@/views/Information.vue"
import My from "@/views/My.vue"

import List from "@/views/List.vue"

Vue.use(VueRouter)

const router=new VueRouter({
    routes:[{
        path:'/',
        component:Foot,
        redirect:"./home",
        children:[
            {
                path:'home',
                component:Home,   
            },
            {
                path:'look',
                component:Look,   
            },
            {
                path:'information',
                component:Information,   
            },
            {
                path:'my',
                component:My,   
            },
        ],
        
    },
    {
        name:"list",
        path:'/list',
        component:List,
    }
]
})
export default router